<table>
	<thead>
		<tr>
			<th>Activit&eacute;</th>
			<th colspan="5">P&eacute;riodes</th>
		</tr>
		<tr>
			<th>&nbsp;</th>
			<th>Initiales</th>
			<th>Ventil&eacute;es</th>
			<th>Autonomie</th>
			<th>&agrave; l'horaire</th>
			<th>TOTAL</th>
		</tr>
	</thead>
    <tbody>
	{% for act in activites %}
		<tr>
			<td>{{ act.libelle }}</td>
			<td>{{ act.periodes }}</td>
			<td style='color:{% if act.periodes == act.periodes_ventilees %}#090{% else %}#900{% endif %}'>{{ act.periodes_ventilees }}</td>
			<td>{{ act.periodes_autonomie }}</td>
			<td style='color:{% if act.periodes_horaire == act.periodes_totales %}#090{% else %}#900{% endif %}'>{{ act.periodes_horaire }}</td>
			<td style='font-weight:bold'>{{ act.periodes_totales }}</td>
		</tr>
	{% endfor %}
	{% if auto %}
		<tr>
			<td colspan="5"></td>
		</tr>
		<tr>
			<td>{{ auto.libelle }}</td>
			<td>{{ auto.periodes }}</td>
			<td style='color:{% if auto.periodes == auto.periodes_ventilees %}#090{% else %}#900{% endif %}'>{{ auto.periodes_ventilees }}</td>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
	{% endif %}
    </tbody>
</table>
